package com.yangming.springboot.exceptions;

/**
 * @创建人 ym
 * @创建时间 2021/3/15 0015
 * @描述
 **/
public class NoLoginException extends RuntimeException {
    private Integer code = 100;
    private String msg = "no login error";

    public NoLoginException(){
        super("login error");
    }

    public NoLoginException(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode(){
        return this.code;
    }

    public String getMsg(){
        return this.msg;
    }

    public void setCode(Integer code){
        this.code = code;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }
}
